<!DOCTYPE html>
<html lang="en" style="height:100%">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>收到的赞和收藏</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../css/yzl.css" />
    <!-- <link rel="stylesheet" href="../../css/BarlowCondensed-Bold.woff.ttf" /> -->
    <!-- <link rel="stylesheet" href="../../css/sqc.css"> -->
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        input{

            outline:none;
        }

    </style>
</head>

<body style="background: #f7f4f2;">
<div id="blank" class="header" v-cloak style="border-bottom:1px solid #f7f4f2;">
    <div v-back.tapmode class="back"></div>
    <div class="title">收到的赞和收藏</div>
</div>
<div id="app"  v-cloak style="padding-top:60px;">
    <div class="blacklist-people notice-list" style="background-color: #fff;">
        <ul>
            <li v-for="(list, index) in collection_list" style="height: 84px;">
                <div class="blacklist-head-notice" style="border-radius: 50%;margin-top: -29px;">
                    <img :src="list.member_avatar" style="border-radius: 50%">
                </div>
                <div class="blacklist-head-datas">
                    <div class="blacklist-title" style="font-size: 15px;margin-bottom: 2px;">
                        <span style="width: 20%;display:inline-block;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{list.nickname}}</span>
                        <span style="display: inline-block;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{list.type == 1 ? '赞了你的动态' : '收藏了你的动态'}}</span>
                    </div>
                    <div class="blacklist-title" style="font-size: 12px;color: #999">{{list.create_time| time}}</div>
                    <div class="recovery-img">
                        <img style="width: 100%;border-radius: 6px" :src="list.cover" />
                    </div>
                </div>
            </li>
        </ul>
    </div>
    <div v-show="collection_list == ''" style="text-align:center;margin-top:50px;background-color: #f7f4f2">
        <img src="../../image/big/xing-shoucang.png" style="margin:0 auto;width:25%">
        <div style="margin:0 auto;color:#999999;text-align:center;padding-top:20px;font-size:12px">还没有收到赞和收藏</div>
    </div>
</div>
</body>
<script src="../../script/api.js"></script>
<script src="../../script/vue.js"></script>
<script src="../../script/app.js"></script>
<script src="../../script/common.js"></script>
<script src="../../script/url.js"></script>
<script src="../../script/components.js"></script>
<script type="text/javascript" src="../../script/jquery.js"></script>

<script>
    var vm,
        wx,
        collection_list,
    apiready = function () {
        setBSImg();
        new Vue({
            el: '#blank'
        })
        wx = api.require('wx');
        var data = {
            member_id:getPrefs('member_id'),
            page_no:1,
            page_size:20,
        };
        var callback = function (ret) {
            collection_list = ret.content;
            console.log(JSON.stringify(collection_list))
            initApp();
        };
        pinet.post(APIURL+'/app/Notices/praiseAndCollectList', data, callback);
        api.parseTapmode();
        addListeners();
    };

    function initApp() {
        // var isBigImg = Vue.BSImg == 'big';
        vm = new Vue({
            el: '#app',
            data: {
                collection_list:collection_list,
            },
            computed: {

            },
            methods: {

            },
            watch: {

            },
        })
    }

    function addListeners() {

        api.addEventListener({
            name: 'viewappear'
        }, function () {
        });

        api.addEventListener({
            name: 'viewdisappear'
        }, function () {
        });

        api.addEventListener({
            name: 'keyback'
        }, function () {
            console.log('ddddd');
            api.closeWin();
        });
        api.addEventListener({
            name: 'reload'
        }, function () {
            window.location.reload();
        });
    }
</script>

</html>
